export default {
	data() {
		return {
			//设置默认的分享参数
			share: {
				title: '友星缘,海量资源与人脉,助你精准获取所需,实现高效对接。',
				path: '/pages/tabbar/chat',
				imageUrl: 'https://file.dgyxy.com/resource/backgroud2.png',
				desc: '点击开启你的周边社交服务',
				content: ''
			}
		}
	},
	onShareAppMessage(res) {
		console.log("onShareAppMessage")
		return {
			title: this.share.title,
			path: this.share.path,
			imageUrl: this.share.imageUrl,
			desc: this.share.desc,
			content: this.share.content,
			success(res) {
				uni.showToast({
					title: '分享成功'
				})
			},
			fail(res) {
				uni.showToast({
					title: '分享失败',
					icon: 'none'
				})
			}
		}
	},
	onShareTimeline() {},
}